home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_i.lzh / intuition / classusr.i < prev    next >
Text File  |  1991-03-14  |  3KB  |  94 lines

  1.     IFND INTUITION_CLASSUSR_I
  2. INTUITION_CLASSUSR_I SET 1
  3. **
  4. ** $Filename: intuition/classusr.i $
  5. ** $Release: 2.04 $
  6. ** $Revision: 36.3 $
  7. ** $Date: 91/02/05 $
  8. **
  9. ** For application users of Intuition object classes
  10. **
  11. **  (C) Copyright 1985,1986,1987,1988,1989,1990 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.  
  16.  
  17.     IFND UTILITY_HOOKS_I
  18.     INCLUDE "utility/hooks.i"
  19.     ENDC
  20.  
  21. * beginning of "method message" passed to class dispatchers
  22.  STRUCTURE Msg,0
  23.     ULONG msg_MethodID
  24.     ; method-specific data follows, some examples below
  25.  
  26. * For now, see the class id's for Intuition basic classes
  27. * defined in classusr.h.  Sorry there aren't macros for the strings yet.
  28.  
  29. * dispatched method ID's
  30. * NOTE: Applications should use Intuition entry points, not these,
  31. * for NewObject, DisposeObject, SetAttrs, SetGadgetAttrs, and GetAttr.
  32.  
  33.     ENUM $101
  34.     EITEM OM_NEW        ; 'object' parameter is "true class"
  35.     EITEM OM_DISPOSE        ; delete self (no parameters)
  36.     EITEM OM_SET        ; set attribute (list)
  37.     EITEM OM_GET        ; return single attribute value    
  38.     EITEM OM_ADDTAIL        ; add self to a List
  39.     EITEM OM_REMOVE        ; remove self from list (no parameters)
  40.     EITEM OM_NOTIFY        ; send to self: notify dependents
  41.     EITEM OM_UPDATE        ; notification message from someone
  42.     EITEM OM_ADDMEMBER        ; used by various classes with lists
  43.     EITEM OM_REMMEMBER        ; used by various classes with lists
  44.  
  45. * Parameter "Messages" passed to methods.
  46. * NOTE: All of these parameter packets
  47. * start off by the longword MethodID, but
  48. * we don't redefine it for each structure.
  49.  
  50. * OM_NEW and OM_SET
  51.  STRUCTURE opSet,4
  52.     ; ULONG        MethodID
  53.     APTR        ops_AttrList    ; new attributes
  54.     APTR        ops_GInfo    ; always there for gadgets,
  55.                     ; but will be NULL for OM_NEW
  56.  
  57. * OM_NOTIFY, and OM_UPDATE
  58.  STRUCTURE opUpdate,4
  59.     ; ULONG        MethodID
  60.     APTR        opu_AttrList    ; new attributes
  61.     APTR        opu_GInfo    ; always there for gadgets,
  62.                     ; but will be NULL for OM_NEW
  63.     ULONG        opu_Flags    ; defined below
  64.  
  65. * this flag means that the update message is being issued from
  66. * something like an active gadget, ala GACT_FOLLOWMOUSE.  When
  67. * the gadget goes inactive, it will issue a final update
  68. * message with this bit cleared.  Examples of use are for
  69. * GACT_FOLLOWMOUSE equivalents for propgadclass, and repeat strobes
  70. * for buttons.
  71.  
  72. OPUB_INTERIM    EQU    0
  73. OPUF_INTERIM    EQU    1
  74.  
  75. * OM_GET
  76.  STRUCTURE opGet,4
  77.     ; ULONG        MethodID
  78.     ULONG        opg_AttrID
  79.     APTR        opg_Storage    ; may be other types, but "int"
  80.                     ; types are all ULONG
  81.  
  82. * OM_ADDTAIL
  83.  STRUCTURE opAddTail,4
  84.     ; ULONG        MethodID
  85.     APTR        opat_List
  86.  
  87. * OM_ADDMEMBER, OM_REMMEMBER
  88.  
  89.  STRUCTURE opMember,4
  90.     ; ULONG        MethodID
  91.     APTR        opam_Object
  92.  
  93.  ENDC    ; IFND INTUITION_CLASSUSR_I
  94.